package com.xcc.common.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @name: frosty
 * @description :
 * @date: 2019/11/8
 */
@ApiModel(value = "com.xcc.common.entry.Address")
@Data
@TableName(value = "iphone.address")
public class Address implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "null")
    private String id;

    /**
     * 用户Id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户Id")
    private String userId;

    /**
     * 地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "地址")
    private String address;

    /**
     * 0 为 默认地址  1 为其他地址   如果只有一个  则自动为默认地址
     */
    @TableField(value = "state")
    @ApiModelProperty(value = "0 为 默认地址  1 为其他地址   如果只有一个  则自动为默认地址")
    private Integer state;

    /**
     * 联系电话
     */
    @TableField(value = "telphone")
    @ApiModelProperty(value = "联系电话")
    private String telphone;

    @TableField(value = "consignee")
    @ApiModelProperty(value = "null")
    private String consignee;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 0未删除 1 已删除
     */
    @TableField(value = "del_type")
    @ApiModelProperty(value = "0未删除 1 已删除")
    private Byte delType;

    private static final long serialVersionUID = 1L;
}